package club.itstudio.itouc.controller

import club.itstudio.itouc.core.util.Result
import club.itstudio.itouc.core.util.ResultUtil
import club.itstudio.itouc.service.schedule.UpdateCourseService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

@RestController
class Hello(val updateCourseService: UpdateCourseService){

    @GetMapping("/hello")
    fun hello(): Result<Any>{
        updateCourseService.updateCourseSchedule()
        return ResultUtil.success()
    }
}
